package com.gimi.cloud.bbp.client.service.mall.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gimi.cloud.bbp.client.service.mall.MallSuggestService;
import com.gimi.cloud.bbp.common.enums.ResponseCodeEnum;
import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dao.dao.mall.MallSuggestDao;
import com.gimi.cloud.bbp.dto.mall.MallSuggestDTO;
import com.gimi.cloud.bbp.entity.mall.MallSuggestEntity;

/**
 * 意见反馈服务
 * @author lilinfeng
 */
@Service
public class MallSuggestServiceImpl implements MallSuggestService {
	@Autowired private MallSuggestDao mallSuggestDao;

	@Override
	public Response submitMallSuggest(MallSuggestDTO dto) {
		MallSuggestEntity record = new MallSuggestEntity();
		BeanUtils.copyProperties(dto, record);
		mallSuggestDao.baseInsert(record);
		return new Response(ResponseCodeEnum.SUCCESSED, "提交意见成功");
	}

}
